

import yaml

from utils.CONSTANT import basedir


def getyamldata(filepath):
    with open(filepath ,'r',encoding='utf-8') as f:
        return yaml.safe_load(f)


import yagmail

#邮件
def send_mial(filename):
    mail= yagmail.SMTP('2200137015@qq.com','kpznjmekbkzmdjeh','smtp.qq.com')
    mail.send('2200137015@qq.com',subject='测试报告',contents='测试内容',attachments=filename)